package server.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import server.domain.Courier;

public interface CourierMapper {
	//批量作废
	int delBatch(Integer[] ids);
	//作废
	@Update("update courier set deltag='0' where id=#{id}")
	int cancel(int id);
	
	@Select("select count(id) from courier")
	int getCount();
	
	List<Courier> findPage(@Param("start")int start, @Param("size")int size);
	
    int deleteByPrimaryKey(Integer id);

    int insert(Courier record);

    Courier selectByPrimaryKey(Integer id);

    List<Courier> selectAll();

    int updateByPrimaryKey(Courier record);
}